var $ = django.jQuery;
tinymce.init({
		theme : "modern",
		height: 300,
		width:'100%',
        selector: "textarea",
        plugins: "image,link,code",
        menubar : true,
        image_class_list: [
        {title: 'None', value: ''},
        {title: 'Dog', value: 'dog'},
        {title: 'Cat', value: 'cat'}
        ],
        file_browser_callback: function(field_name, url, type, win) {
            if(type=='image'){
                $('#my_form input').click();
            }
        }
     });